package com.learn.jdk;

import java.util.function.Supplier;

/**
 * Copyright: Copyright (c) 2019 Asiainfo
 *
 * @ClassName: com.learn.jdk.suppilerTest
 * @Description: 该类的功能描述
 * @version: v1.0.0
 * @author: lipan
 * @date: 2019/11/11 9:42
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2019/11/11      lipan          v1.0.0               修改原因
 */

public class suppilerTest {


    public static void main(String[] args) {


        Supplier<Person> supplier=null;
        supplier=Person::new;


    }

    static  Person personFactory(Supplier<Person> supplier){

        return supplier.get();
    }

}
